package cn.adkii.springframework.context;

import cn.adkii.springframework.context.event.ApplicationEvent;

import java.util.EventListener;

/**
 * @author malingdi
 * @description Interface to be implemented by application event listeners.
 * Based on the standard <code>java.util.EventListener</code> interface
 * for the Observer design pattern.
 * @date 2023/11/28 14:56
 */
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {

    /**
     * Handle an application event
     * @param event the event to response to
     */
    void onApplicationEvent(E event);
}
